package com.opennews.openplatform.config;

import com.opennews.openplatform.myspringbootcore.security.AuthRequestValidator;
import com.opennews.openplatform.myspringbootmvccore.security.RequestIdentityExtractor;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RequestIdentityExtractorConfig {
    @Bean
    public RequestIdentityExtractor requestIdentityExtractor(AuthRequestValidator authRequestValidator, HttpServletRequest request) {
        return new RequestIdentityExtractor(authRequestValidator, request);
    }
}
